{php include wl_template('common/header');}
<ul class="nav nav-tabs" id="myTab">
		<li class="active"><a href="#tab_basic">基础设置</a></li>
	</ul>
<div class="app-content">
	<div class="app-form">
		<form action="" method="post" id="setting-form" class="form-horizontal form form-validate">
			<div class="panel panel-default">
				<div class="panel-heading">基础设置</div>
				<div class="panel-body">
					<div class="form-group">
						<label class="col-sm-2 control-label">商家海报</label>
						<div class="col-sm-9">
							<select name="data[storepid]" class="form-control">
								<option value="">默认海报</option>
								{loop $store $row}
								<option value="{$row['id']}" {if $settings['storepid'] == $row['id']}selected="selected"{/if}>{$row['title']}</option>
								{/loop}
							</select>
						</div>
					</div>
					{if p('rush')}
					<div class="form-group">
						<label class="col-sm-2 control-label">抢购海报</label>
						<div class="col-sm-9">
							<select name="data[rushpid]" class="form-control">
								<option value="">默认海报</option>
								{loop $rush $row}
								<option value="{$row['id']}" {if $settings['rushpid'] == $row['id']}selected="selected"{/if}>{$row['title']}</option>
								{/loop}
							</select>
						</div>
					</div>
					{/if}
					{if p('wlfightgroup')}
					<div class="form-group">
						<label class="col-sm-2 control-label">拼团海报</label>
						<div class="col-sm-9">
							<select name="data[fgrouppid]" class="form-control">
								<option value="">默认海报</option>
								{loop $fightgroup $row}
								<option value="{$row['id']}" {if $settings['fgrouppid'] == $row['id']}selected="selected"{/if}>{$row['title']}</option>
								{/loop}
							</select>
						</div>
					</div>
					{/if}
					{if p('wlcoupon')}
					<div class="form-group">
						<label class="col-sm-2 control-label">卡券海报</label>
						<div class="col-sm-9">
							<select name="data[cardpid]" class="form-control">
								<option value="">默认海报</option>
								{loop $card $row}
								<option value="{$row['id']}" {if $settings['cardpid'] == $row['id']}selected="selected"{/if}>{$row['title']}</option>
								{/loop}
							</select>
						</div>
					</div>
					{/if}
					{if p('distribution')}
					<div class="form-group">
						<label class="col-sm-2 control-label">分销海报</label>
						<div class="col-sm-9">
							<select name="data[distpid]" class="form-control">
								<option value="">默认海报</option>
								{loop $dist $row}
								<option value="{$row['id']}" {if $settings['distpid'] == $row['id']}selected="selected"{/if}>{$row['title']}</option>
								{/loop}
							</select>
						</div>
					</div>
					{/if}
					{if p('groupon')}
					<div class="form-group">
						<label class="col-sm-2 control-label">团购海报</label>
						<div class="col-sm-9">
							<select name="data[grouponid]" class="form-control">
								<option value="">默认海报</option>
								{loop $groupon $row}
								<option value="{$row['id']}" {if $settings['grouponid'] == $row['id']}selected="selected"{/if}>{$row['title']}</option>
								{/loop}
							</select>
						</div>
					</div>
					{/if}
					{if p('salesman')}
					<!--<div class="form-group">
						<label class="col-sm-2 control-label">业务员海报</label>
						<div class="col-sm-9">
							<select name="data[salesmanid]" class="form-control">
								<option value="">默认海报</option>
								{loop $salesman $row}
								<option value="{$row['id']}" {if $settings['salesmanid'] == $row['id']}selected="selected"{/if}>{$row['title']}</option>
								{/loop}
							</select>
						</div>
					</div>-->
					{/if}
					{if p('bargain')}
					<div class="form-group">
						<label class="col-sm-2 control-label">砍价海报</label>
						<div class="col-sm-9">
							<select name="data[bargainid]" class="form-control">
								<option value="">默认海报</option>
								{loop $bargain $row}
								<option value="{$row['id']}" {if $settings['bargainid'] == $row['id']}selected="selected"{/if}>{$row['title']}</option>
								{/loop}
							</select>
						</div>
					</div>
					{/if}
					{if p('activity')}
					<div class="form-group">
						<label class="col-sm-2 control-label">活动海报</label>
						<div class="col-sm-9">
							<select name="data[activityid]" class="form-control">
								<option value="">活动海报</option>
								{loop $activity $row}
								<option value="{$row['id']}" {if $settings['activityid'] == $row['id']}selected="selected"{/if}>{$row['title']}</option>
								{/loop}
							</select>
						</div>
					</div>
					{/if}
					{if p('consumption')}
						<div class="form-group">
							<label class="col-sm-2 control-label">积分商城海报</label>
							<div class="col-sm-9">
								<select name="data[consumption_id]" class="form-control">
									<option value="">默认海报</option>
									{loop $consumption $row}
										<option value="{$row['id']}" {if $settings['consumption_id'] == $row['id']}selected="selected"{/if}>{$row['title']}</option>
									{/loop}
								</select>
							</div>
						</div>
					{/if}
					{if p('citycard')}
						<!--<div class="form-group">
							<label class="col-sm-2 control-label">个人名片海报</label>
							<div class="col-sm-9">
								<select name="data[user_card_id]" class="form-control">
									<option value="">默认海报</option>
									{loop $userCard $row}
										<option value="{$row['id']}" {if $settings['user_card_id'] == $row['id']}selected="selected"{/if}>{$row['title']}</option>
									{/loop}
								</select>
							</div>
						</div>-->
					{/if}
					{if p('subposter')}
					<div class="form-group">
						<label class="col-sm-2 control-label">倡议关注海报</label>
						<div class="col-sm-9">
							<select name="data[subposter_id]" class="form-control">
								<option value="">默认海报</option>
								{loop $subposters $row}
								<option value="{$row['id']}" {if $settings['subposter_id'] == $row['id']}selected="selected"{/if}>{$row['title']}</option>
								{/loop}
							</select>
						</div>
					</div>
					{/if}
					{if p('dating')}
						<div class="form-group">
							<label class="col-sm-2 control-label">红娘海报</label>
							<div class="col-sm-9">
								<select name="data[dating_id]" class="form-control">
									<option value="">默认海报</option>
									{loop $dating $row}
										<option value="{$row['id']}" {if $settings['dating_id'] == $row['id']}selected="selected"{/if}>{$row['title']}</option>
									{/loop}
								</select>
							</div>
						</div>
					{/if}
					{if p('dating')}
						<div class="form-group">
							<label class="col-sm-2 control-label">家政海报</label>
							<div class="col-sm-9">
								<select name="data[housekeepid]" class="form-control">
									<option value="">默认海报</option>
									{loop $housekeep $row}
									<option value="{$row['id']}" {if $settings['housekeepid'] == $row['id']}selected="selected"{/if}>{$row['title']}</option>
									{/loop}
								</select>
							</div>
						</div>
					{/if}
					{if p('wxplatform')}
					<div class="form-group">
						<label class="col-sm-2 control-label">H5微信海报</label>
						<div class="col-sm-9">
							<label class="radio-inline">
								<input type="radio" name="data[h5_poster]" value="0" {if $settings['h5_poster'] != 1} checked {/if}>普通二维码
							</label>
							<label class="radio-inline">
								<input type="radio" name="data[h5_poster]" value="1" {if $settings['h5_poster'] == 1} checked {/if}>关注二维码
							</label>
							<div class="help-block">普通二维码扫码为链接，关注二维码扫码关注公众号后自动推送图文链接</div>
						</div>
					</div>
					{/if}
					{if p('wxapp') && p('wxplatform')}
					<div class="form-group">
						<label class="col-sm-2 control-label">小程序海报</label>
						<div class="col-sm-9">
							<label class="radio-inline">
								<input type="radio" name="data[wxapp_poster]" value="0" {if $settings['wxapp_poster'] != 1} checked {/if}>小程序码
							</label>
							<label class="radio-inline">
								<input type="radio" name="data[wxapp_poster]" value="1" {if $settings['wxapp_poster'] == 1} checked {/if}>关注二维码
							</label>
							<div class="help-block">小程序码扫码直接打开小程序，关注二维码扫码关注公众号后自动推送回复信息。</div>
						</div>
					</div>
					<div class="form-group" >
						<label class="col-sm-2 control-label">关注海报回复类型</label>
						<div class="col-sm-9">
							<label class="radio-inline">
								<input type="radio" name="data[replytype]" value="0" {if $settings['replytype'] != 1} checked {/if}>微信图文
							</label>
							<label class="radio-inline">
								<input type="radio" name="data[replytype]" value="1" {if $settings['replytype'] == 1} checked {/if}>小程序
							</label>
							<div class="help-block">默认回复类型为微信图文</div>
						</div>
					</div>
					{/if}
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"></label>
				<div class="col-sm-9">
					<input type="submit" name="submit" value="提交" class="btn btn-primary min-width" />
					<input type="hidden" name="token" value="{$_W['token']}" />
				</div>
			</div>
		</form>
	</div>
</div>
{php include wl_template('common/footer');}